package com.atguigu.gmall.service;

import com.atguigu.gmall.bean.UmsMember;
import com.atguigu.gmall.bean.UmsMemberReceiveAddress;

import java.util.List;

public interface UserService {

    List<UmsMember> getAllUser();

    List<UmsMemberReceiveAddress> getReceiveAddressByMemberId(String memberId);

    /**
     * 登录请求
     * @param umsMember
     * @return
     */
    UmsMember login(UmsMember umsMember);

    /**
     * 将token加入到redis中
     * @param token
     * @param memberId
     */
    void addUserToken(String token, String memberId);

    /**
     * 通过id获得具体地址
     * @param receiveAddressId
     * @return
     */
    UmsMemberReceiveAddress getReceiveAddressById(String receiveAddressId);
}
